'''
author:ni
'''


from users.models import UserToken


def check_token(token,user_id):
    # token = request.POST.get('token')
    get_token = UserToken.objects.filter(user_id = user_id).first()
    print(get_token.token)
    print(type(get_token.token))
    if get_token.token == token:
        print(333333)
        return True
    else:
        print(444444)
        return False